package com.ruoyi.web.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 帖子对象 post
 *
 * @author jiwei
 * @date 2024-05-16
 */
@TableName(resultMap = "com.ruoyi.web.mapper.PostMapper.PostResult")
public class Post extends BaseEntity
        {
private static final long serialVersionUID = 1L;

    /** ID */
        @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 标题 */
            @Excel(name = "标题")
    private String title;

    /** 封面图 */
    private String coverPic;

    /** 社区ID */
            @Excel(name = "社区ID")
    private Long communityId;

    /** 板块ID */
            @Excel(name = "板块ID")
    private Long sectionId;

    /** 状态 */
            @Excel(name = "状态")
    private Long status;

    /** 评论数量 */
            @Excel(name = "评论数量")
    private Long commentNum;

    /** 浏览数量 */
            @Excel(name = "浏览数量")
    private Long viewNum;

    /** 点赞数量 */
            @Excel(name = "点赞数量")
    private Long likedNum;

    /** 收藏数量 */
            @Excel(name = "收藏数量")
    private Long collectNum;

    /** 是否置顶 */
            @Excel(name = "是否置顶")
    private Long isTop;

    /** 是否置精 */
            @Excel(name = "是否置精")
    private Long isEssence;

    /**  */
    private String content;

    /**  */
    private Date createAt;

    /**  */
    private Date updateAt;

    public void setId(Long id)
            {
            this.id = id;
            }

    public Long getId()
            {
            return id;
            }
    public void setTitle(String title)
            {
            this.title = title;
            }

    public String getTitle()
            {
            return title;
            }
    public void setCoverPic(String coverPic)
            {
            this.coverPic = coverPic;
            }

    public String getCoverPic()
            {
            return coverPic;
            }
    public void setCommunityId(Long communityId)
            {
            this.communityId = communityId;
            }

    public Long getCommunityId()
            {
            return communityId;
            }
    public void setSectionId(Long sectionId)
            {
            this.sectionId = sectionId;
            }

    public Long getSectionId()
            {
            return sectionId;
            }
    public void setStatus(Long status)
            {
            this.status = status;
            }

    public Long getStatus()
            {
            return status;
            }
    public void setCommentNum(Long commentNum)
            {
            this.commentNum = commentNum;
            }

    public Long getCommentNum()
            {
            return commentNum;
            }
    public void setViewNum(Long viewNum)
            {
            this.viewNum = viewNum;
            }

    public Long getViewNum()
            {
            return viewNum;
            }
    public void setLikedNum(Long likedNum)
            {
            this.likedNum = likedNum;
            }

    public Long getLikedNum()
            {
            return likedNum;
            }
    public void setCollectNum(Long collectNum)
            {
            this.collectNum = collectNum;
            }

    public Long getCollectNum()
            {
            return collectNum;
            }
    public void setIsTop(Long isTop)
            {
            this.isTop = isTop;
            }

    public Long getIsTop()
            {
            return isTop;
            }
    public void setIsEssence(Long isEssence)
            {
            this.isEssence = isEssence;
            }

    public Long getIsEssence()
            {
            return isEssence;
            }
    public void setContent(String content)
            {
            this.content = content;
            }

    public String getContent()
            {
            return content;
            }
    public void setCreateAt(Date createAt)
            {
            this.createAt = createAt;
            }

    public Date getCreateAt()
            {
            return createAt;
            }
    public void setUpdateAt(Date updateAt)
            {
            this.updateAt = updateAt;
            }

    public Date getUpdateAt()
            {
            return updateAt;
            }

@Override
public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("coverPic", getCoverPic())
            .append("communityId", getCommunityId())
            .append("sectionId", getSectionId())
            .append("status", getStatus())
            .append("commentNum", getCommentNum())
            .append("viewNum", getViewNum())
            .append("likedNum", getLikedNum())
            .append("collectNum", getCollectNum())
            .append("isTop", getIsTop())
            .append("isEssence", getIsEssence())
            .append("content", getContent())
            .append("createBy", getCreateBy())
            .append("createAt", getCreateAt())
            .append("updateBy", getUpdateBy())
            .append("updateAt", getUpdateAt())
        .toString();
        }
        }
